package com.pactera.madp.cp.api.vo.task;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @File name：com.pactera.madp.cp.api.vo.task.TaskDetailsByIdVO
 * @Create on：2022/5/11
 * @Author：tianq
 */
@Data
@Api(value = "TaskDetailsByIdVO",tags = "任务发布详情输出类")
public class TaskDetailsByIdVO {

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "任务类型")
    private Integer taskType;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "目标人数")
    private Integer goalCount;

    @ApiModelProperty(value = "开始时间")
    private String beginTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "是否配置红包")
    private Boolean enableWxredpack;

    @ApiModelProperty(value = "是否主动发送红包")
    private Boolean autoSendWxredpack;

    @ApiModelProperty(value = "单个红包金额(单位：分)")
    private Integer wxredpackAmount;

    @ApiModelProperty(value = "用户列表")
    private List<JoinUser> joinUsers;

    @ApiModelProperty(value = "部门列表")
    private List<DeptS> deptS;


    @NoArgsConstructor
    @Data
    public static class JoinUser{
        @ApiModelProperty(value = "用户id列表")
        private Integer joinUser;

        @ApiModelProperty(value = "用户姓名列表")
        private String joinUserName;

        @ApiModelProperty(value = "用户工号")
        private String joinJobNo;
    }

    @NoArgsConstructor
    @Data
    public static class DeptS{
        @ApiModelProperty(value = "部门列表")
        private Integer deptIds;

        @ApiModelProperty(value = "部门列表名")
        private String deptIdName;
    }

}
